import view as view
from django.contrib.auth.mixins import LoginRequiredMixin
from django import http
from django.views import View

class LoginRequiredJSONMixin(LoginRequiredMixin):

    def handle_no_permission(self):
        return http.JsonResponse({'code': 4101, 'errmsg': '用户未登录'})


